package action

import (
	"core/corestruct"
	"core/coreutil"
	"ht/htinfo"
	"reflect"
)

type PageAction struct {
}

func (p *PageAction) Do(ctx *corestruct.HttpContext) (string, error) {
	var dt = coreutil.DateUtil.NowStr()
	return dt, nil
}

func PageActionInit() {

	var mact = &PageAction{}
	var maction = corestruct.Action{
		Method: "get",

		FullUrl: URLPrev + "/Page",
		Name:    PAGEName + "列表",
		Ename:   "",
		Memo:    "",

		PinType:    "",
		PinIslist:  false,
		PoutType:   "",
		PoutIslist: false,
		PoutIspage: false,

		AuthType: corestruct.AuthType_NONE,

		LogNeed:     false,
		LogPin:      false,
		LogPout:     false,
		LogTemplete: "",

		PrjName: htinfo.PRJ_NAME,

		Value: reflect.ValueOf(mact),
	}
	coreutil.ActionUtil.Add(maction)

}
